package Final;

import javax.swing.*;
import java.awt.*;

public class Error_Login {
    public Error_Login(){
        JFrame jFrame = new JFrame();
        jFrame.setTitle("提示界面");
        jFrame.setSize(340, 100);
        jFrame.setLayout(new FlowLayout());
        jFrame.setLocationRelativeTo(null);
        jFrame.setResizable(false);

        JLabel jLabel = new JLabel();
        jLabel.setText("账号或密码错误！！");

        JButton jButton = new JButton();
        jButton.setText("返回");

        jFrame.add(jLabel);
        jFrame.add(jButton);
        jFrame.setVisible(true);

        jButton.addActionListener(e -> {

            jFrame.dispose();

        });
    }
}
